package com.woniuxy.oa.service;

import com.woniuxy.oa.entity.Attendance;
import com.woniuxy.oa.entity.PageBean;

public interface AttendanceService {
	
	//签到
	int insertSignIn(Attendance attendance);
	//签退
	int updateSignBack(Attendance attendance);
	//查询当前用户是否已经签到
	String selectIsSignIn(Attendance attendance);
	//查询当前用户是否已经签退
	String selectIsSignBack(Attendance attendance);
	//当签到和签退成功后，查询当前的考勤信息（根据用户id和考勤日期）
	Attendance selectAllAttendanceByDateAndUserid(Attendance attendance);
	//迟到原因备注
	int lateReason(Attendance attendance);
	
	/**
	 * 分页
	 */
	PageBean<Attendance> getAttendanceConditionByPage(int pageIndex,
			int pageSize, String startDate, String endDate);
	
}
